package com.sergenis.swing;

import com.sergenis.swing.plaf.GenisProgressBarUI;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;

import javax.swing.BoundedRangeModel;
import javax.swing.JComponent;
import javax.swing.JProgressBar;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.ProgressBarUI;
import javax.swing.plaf.basic.BasicProgressBarUI;

public class ProgressBar
    extends JProgressBar {

    public ProgressBar() {
	this(0, 100);
    }

    public ProgressBar(int orient) {
	this(orient, 0, 100);
    }

    public ProgressBar(int min, int max) {
	this(JProgressBar.HORIZONTAL, min, max);
    }

    public ProgressBar(int orient, int min, int max) {
	super(orient, min, max);
	setOpaque(false);
	setBorderPainted(false);
	setUI(GenisProgressBarUI.createUI(this));
    }
    private Color stringColor = new java.awt.Color(51, 153, 255);

    public Color getStringColor() {
	return stringColor;
    }

    public void setStringColor(Color stringColor) {
	this.stringColor = stringColor;
    }
    private Color barColor = Color.RED;

    public Color getBarColor() {
	return barColor;
    }

    public void setBarColor(Color barColor) {
	this.barColor = barColor;
    }
}
